﻿namespace SS.Common.ImageResizer
{
    /// <summary>
    /// The class is used to store size of Image after finished resizing
    /// </summary>
    public class ImageSize
    {
        private readonly int _width;
        private readonly int _height;
        private readonly int _xOffset;
        private readonly int _yOffset;

        public int Width
        {
            get
            {
                return this._width;
            }
        }

        public int Height
        {
            get
            {
                return this._height;
            }
        }

        public int XOffset
        {
            get
            {
                return this._xOffset;
            }
        }

        public int YOffset
        {
            get
            {
                return this._yOffset;
            }
        }

        public ImageSize(int width, int height, int xOffset, int yOffset)
        {
            this._width = width;
            this._height = height;
            this._xOffset = xOffset;
            this._yOffset = yOffset;
        }
    }
}
